home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / libraries / asl.inc < prev    next >
Text File  |  1998-06-24  |  7KB  |  240 lines

  1. include "inc/exec/types.inc";
  2. include "inc/exec/nodes.inc";
  3. include "inc/utility/tagitem.inc";
  4. include "inc/workbench/startup.inc";
  5. include "inc/graphics/text.inc";
  6. include "inc/graphics/displayinfo.inc";
  7.  
  8. def AslName = "asl.library";
  9. def ASL_TB = (TAG_USER+$80000);
  10.  
  11. def ASL_FileRequest = 0;
  12. def ASL_FontRequest = 1;
  13. def ASL_ScreenModeRequest = 2;
  14.  
  15. struct FileRequester is
  16.   fr_Reserved0[4]:ubyte;
  17.   fr_File:ulong;
  18.   fr_Drawer:ulong;
  19.   fr_Reserved1[10]:ubyte;
  20.   fr_LeftEdge:word;
  21.   fr_TopEdge:word;
  22.   fr_Width:word;
  23.   fr_Height:word;
  24.   fr_Reserved2[2]:ubyte;
  25.   fr_NumArgs:long;
  26.   fr_ArgList:ulong;
  27.   fr_UserData:ulong;
  28.   fr_Reserved3[8]:ubyte;
  29.   fr_Pattern:ulong;
  30. ;
  31.  
  32. def ASLFR_Window = (ASL_TB+2);
  33. def ASLFR_Screen = (ASL_TB+40);
  34. def ASLFR_PubScreenName = (ASL_TB+41);
  35. def ASLFR_PrivateIDCMP = (ASL_TB+42);
  36. def ASLFR_IntuiMsgFunc = (ASL_TB+70);
  37. def ASLFR_SleepWindow = (ASL_TB+43);
  38. def ASLFR_UserData = (ASL_TB+52);
  39.  
  40. def ASLFR_TextAttr = (ASL_TB+51);
  41. def ASLFR_Locale = (ASL_TB+50);
  42. def ASLFR_TitleText = (ASL_TB+1);
  43. def ASLFR_PositiveText = (ASL_TB+18);
  44. def ASLFR_NegativeText = (ASL_TB+19);
  45.  
  46. def ASLFR_InitialLeftEdge = (ASL_TB+3);
  47. def ASLFR_InitialTopEdge = (ASL_TB+4);
  48. def ASLFR_InitialWidth = (ASL_TB+5);
  49. def ASLFR_InitialHeight = (ASL_TB+6);
  50. def ASLFR_InitialFile = (ASL_TB+8);
  51. def ASLFR_InitialDrawer = (ASL_TB+9);
  52. def ASLFR_InitialPattern = (ASL_TB+10);
  53.  
  54. def ASLFR_Flags1 = (ASL_TB+20);
  55. def ASLFR_Flags2 = (ASL_TB+22);
  56. def ASLFR_DoSaveMode = (ASL_TB+44);
  57. def ASLFR_DoMultiSelect = (ASL_TB+45);
  58. def ASLFR_DoPatterns = (ASL_TB+46);
  59.  
  60. def ASLFR_DrawersOnly = (ASL_TB+47);
  61. def ASLFR_FilterFunc = (ASL_TB+49);
  62. def ASLFR_RejectIcons = (ASL_TB+60);
  63. def ASLFR_RejectPattern = (ASL_TB+61);
  64. def ASLFR_AcceptPattern = (ASL_TB+62);
  65. def ASLFR_FilterDrawers = (ASL_TB+63);
  66. def ASLFR_HookFunc = (ASL_TB+7);
  67.  
  68. def FRB_FILTERFUNC = 7;
  69. def FRB_INTUIFUNC = 6;
  70. def FRB_DOSAVEMODE = 5;
  71. def FRB_PRIVATEIDCMP = 4;
  72. def FRB_DOMULTISELECT = 3;
  73. def FRB_DOPATTERNS = 0;
  74.  
  75. def FRF_FILTERFUNC = (1<<FRB_FILTERFUNC);
  76. def FRF_INTUIFUNC = (1<<FRB_INTUIFUNC);
  77. def FRF_DOSAVEMODE = (1<<FRB_DOSAVEMODE);
  78. def FRF_PRIVATEIDCMP = (1<<FRB_PRIVATEIDCMP);
  79. def FRF_DOMULTISELECT = (1<<FRB_DOMULTISELECT);
  80. def FRF_DOPATTERNS = (1<<FRB_DOPATTERNS);
  81.  
  82. def FRB_DRAWERSONLY = 0;
  83. def FRB_FILTERDRAWERS = 1;
  84. def FRB_REJECTICONS = 2;
  85.  
  86. def FRF_DRAWERSONLY = (1<<FRB_DRAWERSONLY);
  87. def FRF_FILTERDRAWERS = (1<<FRB_FILTERDRAWERS);
  88. def FRF_REJECTICONS = (1<<FRB_REJECTICONS);
  89.  
  90. struct FontRequester is
  91.   fo_Reserved0[8]:ubyte;
  92.   fo_Attr:TextAttr;
  93.   fo_FrontPen:ubyte;
  94.   fo_BackPen:ubyte;
  95.   fo_DrawMode:ubyte;
  96.   fo_Reserved1:ubyte;
  97.   fo_UserData:ulong;
  98.   fo_LeftEdge:word;
  99.   fo_TopEdge:word;
  100.   fo_Width:word;
  101.   fo_Height:word;
  102.   fo_TAttr:TTextAttr;
  103. ;
  104.  
  105. def ASLFO_Window = (ASL_TB+2);
  106. def ASLFO_Screen = (ASL_TB+40);
  107. def ASLFO_PubScreenName = (ASL_TB+41);
  108. def ASLFO_PrivateIDCMP = (ASL_TB+42);
  109. def ASLFO_IntuiMsgFunc = (ASL_TB+70);
  110. def ASLFO_SleepWindow = (ASL_TB+43);
  111. def ASLFO_UserData = (ASL_TB+52);
  112.  
  113. def ASLFO_TextAttr = (ASL_TB+51);
  114. def ASLFO_Locale = (ASL_TB+50);
  115. def ASLFO_TitleText = (ASL_TB+1);
  116. def ASLFO_PositiveText = (ASL_TB+18);
  117. def ASLFO_NegativeText = (ASL_TB+19);
  118.  
  119. def ASLFO_InitialLeftEdge = (ASL_TB+3);
  120. def ASLFO_InitialTopEdge = (ASL_TB+4);
  121. def ASLFO_InitialWidth = (ASL_TB+5);
  122. def ASLFO_InitialHeight = (ASL_TB+6);
  123. def ASLFO_InitialName = (ASL_TB+10);
  124. def ASLFO_InitialSize = (ASL_TB+11);
  125. def ASLFO_InitialStyle = (ASL_TB+12);
  126. def ASLFO_InitialFlags = (ASL_TB+13);
  127. def ASLFO_InitialFrontPen = (ASL_TB+14);
  128. def ASLFO_InitialBackPen = (ASL_TB+15);
  129. def ASLFO_InitialDrawMode = (ASL_TB+59);
  130.  
  131. def ASLFO_Flags = (ASL_TB+20);
  132. def ASLFO_DoFrontPen = (ASL_TB+44);
  133. def ASLFO_DoBackPen = (ASL_TB+45);
  134. def ASLFO_DoStyle = (ASL_TB+46);
  135. def ASLFO_DoDrawMode = (ASL_TB+47);
  136.  
  137. def ASLFO_FixedWidthOnly = (ASL_TB+48);
  138. def ASLFO_MinHeight = (ASL_TB+16);
  139. def ASLFO_MaxHeight = (ASL_TB+17);
  140. def ASLFO_FilterFunc = (ASL_TB+49);
  141. def ASLFO_HookFunc = (ASL_TB+7);
  142. def ASLFO_MaxFrontPen = (ASL_TB+66);
  143. def ASLFO_MaxBackPen = (ASL_TB+67);
  144.  
  145. def ASLFO_ModeList = (ASL_TB+21);
  146. def ASLFO_FrontPens = (ASL_TB+64);
  147. def ASLFO_BackPens = (ASL_TB+65);
  148.  
  149. def FOB_DOFRONTPEN = 0;
  150. def FOB_DOBACKPEN = 1;
  151. def FOB_DOSTYLE = 2;
  152. def FOB_DODRAWMODE = 3;
  153. def FOB_FIXEDWIDTHONLY = 4;
  154. def FOB_PRIVATEIDCMP = 5;
  155. def FOB_INTUIFUNC = 6;
  156. def FOB_FILTERFUNC = 7;
  157.  
  158. def FOF_DOFRONTPEN = (1<<FOB_DOFRONTPEN);
  159. def FOF_DOBACKPEN = (1<<FOB_DOBACKPEN);
  160. def FOF_DOSTYLE = (1<<FOB_DOSTYLE);
  161. def FOF_DODRAWMODE = (1<<FOB_DODRAWMODE);
  162. def FOF_FIXEDWIDTHONLY = (1<<FOB_FIXEDWIDTHONLY);
  163. def FOF_PRIVATEIDCMP = (1<<FOB_PRIVATEIDCMP);
  164. def FOF_INTUIFUNC = (1<<FOB_INTUIFUNC);
  165. def FOF_FILTERFUNC = (1<<FOB_FILTERFUNC);
  166.  
  167. struct ScreenModeRequester is
  168.   sm_DisplayID:ulong;
  169.   sm_DisplayWidth:ulong;
  170.   sm_DisplayHeight:ulong;
  171.   sm_DisplayDepth:uword;
  172.   sm_OverscanType:uword;
  173.   sm_AutoScroll:word;
  174.   sm_BitMapWidth:ulong;
  175.   sm_BitMapHeight:ulong;
  176.   sm_LeftEdge:word;
  177.   sm_TopEdge:word;
  178.   sm_Width:word;
  179.   sm_Height:word;
  180.   sm_InfoOpened:word;
  181.   sm_InfoLeftEdge:word;
  182.   sm_InfoTopEdge:word;
  183.   sm_InfoWidth:word;
  184.   sm_InfoHeight:word;
  185.   sm_UserData:ulong;
  186. ;
  187.  
  188. struct DisplayMode is
  189.   dm_Node:Node;
  190.   dm_DimensionInfo:DimensionInfo;
  191.   dm_PropertyFlags:ulong;
  192. ;
  193.  
  194. def ASLSM_Window = (ASL_TB+2);
  195. def ASLSM_Screen = (ASL_TB+40);
  196. def ASLSM_PubScreenName = (ASL_TB+41);
  197. def ASLSM_PrivateIDCMP = (ASL_TB+42);
  198. def ASLSM_IntuiMsgFunc = (ASL_TB+70);
  199. def ASLSM_SleepWindow = (ASL_TB+43);
  200. def ASLSM_UserData = (ASL_TB+52);
  201.  
  202. def ASLSM_TextAttr = (ASL_TB+51);
  203. def ASLSM_Locale = (ASL_TB+50);
  204. def ASLSM_TitleText = (ASL_TB+1);
  205. def ASLSM_PositiveText = (ASL_TB+18);
  206. def ASLSM_NegativeText = (ASL_TB+19);
  207.  
  208. def ASLSM_InitialLeftEdge = (ASL_TB+3);
  209. def ASLSM_InitialTopEdge = (ASL_TB+4);
  210. def ASLSM_InitialWidth = (ASL_TB+5);
  211. def ASLSM_InitialHeight = (ASL_TB+6);
  212. def ASLSM_InitialDisplayID = (ASL_TB+100);
  213. def ASLSM_InitialDisplayWidth = (ASL_TB+101);
  214. def ASLSM_InitialDisplayHeight = (ASL_TB+102);
  215. def ASLSM_InitialDisplayDepth = (ASL_TB+103);
  216. def ASLSM_InitialOverscanType = (ASL_TB+104);
  217. def ASLSM_InitialAutoScroll = (ASL_TB+105);
  218. def ASLSM_InitialInfoOpened = (ASL_TB+106);
  219. def ASLSM_InitialInfoLeftEdge = (ASL_TB+107);
  220. def ASLSM_InitialInfoTopEdge = (ASL_TB+108);
  221.  
  222. def ASLSM_DoWidth = (ASL_TB+109);
  223. def ASLSM_DoHeight = (ASL_TB+110);
  224. def ASLSM_DoDepth = (ASL_TB+111);
  225. def ASLSM_DoOverscanType = (ASL_TB+112);
  226. def ASLSM_DoAutoScroll = (ASL_TB+113);
  227.  
  228. def ASLSM_PropertyFlags = (ASL_TB+114);
  229. def ASLSM_PropertyMask = (ASL_TB+115);
  230. def ASLSM_MinWidth = (ASL_TB+116);
  231. def ASLSM_MaxWidth = (ASL_TB+117);
  232. def ASLSM_MinHeight = (ASL_TB+118);
  233. def ASLSM_MaxHeight = (ASL_TB+119);
  234. def ASLSM_MinDepth = (ASL_TB+120);
  235. def ASLSM_MaxDepth = (ASL_TB+121);
  236. def ASLSM_FilterFunc = (ASL_TB+122);
  237.  
  238. def ASLSM_CustomSMList = (ASL_TB+123);
  239.  
  240.